#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings

admin.autodiscover()

urlpatterns = patterns('',

    (r'^admin/', include(admin.site.urls)),
    (r'^users/', include('usermanagement.urls')),
    (r'^downloads/', include('filemanagement.urls')),
    
    # giving public access to static content (media-dir under MEDIA_ROOT)
    # may be changed, so that only logged on users can access
    # conflic with filemanagement ?
    (r'^uploaded_content/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    (r'^$', include('shared.urls'))
)
